home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
demos
/
dms4demo.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-01-24
|
8KB
|
160 lines
echo off
cls
if /%1==/ goto error2
if /%2==/ goto error3
if /%1==%2/ goto error1
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ DMS/IB Installation ║
echo ║ ║
echo ║ Disk Management System / Intelligent Backup ║
echo ║ Copyright 1992 Sterling Software, Inc. ║
echo ║ ║
echo ╠═════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ DMS/IB is being installed from floppy disk %1: to ║
echo ║ hard disk drive %2: ║
echo ║ ║
echo ╟─────────────────────────────────────────────────────────────────╢
echo ║ ║
echo ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ DMS/IB Installation ║
echo ║ ║
echo ║ Disk Management System / Intelligent Backup ║
echo ║ Copyright 1992 Sterling Software, Inc. ║
echo ║ ║
echo ╠═════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ Installation will use a new or existing directory \DMSDIR. ║
echo ║ If the directory already exists it will be reused. ║
echo ║ ║
echo ║ You will need about 500K characters of free disk space to ║
echo ║ run DMS/IB. There is no limit to the number of times you ║
echo ║ can install DMS/IB. ║
echo ║ ║
echo ╟─────────────────────────────────────────────────────────────────╢
echo ║ ║
echo ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
cls
echo Install started.....
%2:
cd \
md \DMSDIR
cd \DMSDIR
if exist FILENAME.NDX del FILENAM?.NDX
if exist VPOOL.DAT del VPOO?.DAT
if exist HELP.DAT del HELP.DAT
if exist HELP.NDX del HELP.NDX
if exist MSG.DAT del MSG.DAT
if exist IB.EXE del IB.EXE
if exist IBCHECK.EXE del IBCHECK.EXE
if exist AUTOINST.EXE del AUTOINST.EXE
if exist IBT*.* del IBT*.*
if exist FILEEXCL.TXT del FILEEXCL.TXT
if exist HISTORY.TXT del HISTORY.TXT
if exist IBOPTN.DAT del IBOPTN.DAT
if exist IBUBN.OVL del IBUBN.OVL
if exist IB.CMD del IB.CMD
if exist IBSTART.CMD del IBSTART.CMD
cls
echo PLEASE WAIT. Copying DMS/IB program files ...
%1:
cd\dmsdir
copy %1:\dmsdir %2:\dmsdir
%2:
echo PLEASE WAIT. Confirming proper installation ...
if exist IBCONV.* del IBCONV.*
cls
if not exist IBOPTN.DAT goto error4
if not exist IBUBN.OVL goto error4
if not exist HELP.NDX goto error4
if not exist HELP.DAT goto error4
if not exist MSG.DAT goto error4
if not exist IB.EXE goto error4
if not exist FILEEXCL.TXT goto error4
if not exist HISTORY.TXT goto error4
if not exist IBT2LANG.DAT goto error4
if not exist IBT4LANG.DAT goto error4
if not exist IBT2INST.DAT goto error4
if not exist AUTOINST.EXE goto error4
if not exist IBASPI.SYS goto error4
if not exist IBSTART.CMD goto error4
autoinst %1 %2
pause
cd \
if exist CONFIG.IBS del CONFIG.IBS
cd \DMSDIR
if exist AUTOINST.EXE del AUTOINST.EXE
if exist IBT2INST.DAT del IBT2INST.DAT
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Install Complete. Just type "IB" to start your first backup. ║
echo ║ ║
echo ║ Be sure to print and read the README file that is included ║
echo ║ on the installation diskette. You will find information on ║
echo ║ the latest beta testing status. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto end
:error1
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Floppy and Hard disk drive ID are the same ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error2
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Floppy and Hard disk drive IDs not specified ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error3
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Hard disk drive ID not specified ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error4
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Installation Failed! This may be due to insufficient disk ║
echo ║ space or disk I/O error. Confirm that 500K of usable disk ║
echo ║ space is available, then begin installation again. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
echo off
echo please wait...
cd \
if exist IB.CMD del IB.CMD
goto end
:error
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Install failed! Check for proper command syntax. ║
echo ║ ║
echo ║ floppy-letter:INSTALL floppy-letter hard-disk-letter ║
echo ║ ║
echo ║ Example: To install from distribution diskette in floppy ║
echo ║ drive A: to a hard disk (Fixed Disk) referred to ║
echo ║ as drive C: use the following command ║
echo ║ ║
echo ║ A:INSTALL A C ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
:end
cd\
cd %1:\ >nul
cd %2:\ >nul